package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_category
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_category")
public class SysCategory implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 36)
    private String id;
    
    /**
     * 父级节点
     */
    @Column(name = "pid", length = 36)
    private String pid;
    
    /**
     * 类型名称
     */
    @Column(name = "name", length = 100)
    private String name;
    
    /**
     * 类型编码
     */
    @Column(name = "code", length = 100)
    private String code;
    
    /**
     * 创建人
     */
    @Column(name = "create_by", length = 50)
    private String createBy;
    
    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新人
     */
    @Column(name = "update_by", length = 50)
    private String updateBy;
    
    /**
     * 更新日期
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 所属部门
     */
    @Column(name = "sys_org_code", length = 64)
    private String sysOrgCode;
    
    /**
     * 是否有子节点
     */
    @Column(name = "has_child", length = 3)
    private String hasChild;
    
    @Override
    public String toString() {
        return "SysCategory{" +
            "id=" + id +
            ", pid=" + pid +
            ", name=" + name +
            ", code=" + code +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", sysOrgCode=" + sysOrgCode +
            ", hasChild=" + hasChild +
        '}';
    }
} 